package com.sm.li.common.page;

import java.io.Serializable;
import java.util.List;

public class PageBean<T> implements Serializable {

    public long total;
    public List<T> data;

    private PageBean(long total,List<T> data){
        this.data=data;
        this.total=total;
    }

    public static <T> PageBean<T> initData(long total,List<T> data){
        return new PageBean<T>(total, data);
    }
}

